/* Email.module.css */
.emailContainer {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.loadingSkeleton {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.skeletonItem {
  height: 80px;
  background: #e9ecef;
  border-radius: 8px;
}

.contactList {
  list-style: none;
  padding: 0;
}

.contactItem {
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.contactItem:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatarSection {
  width: 60px;
  height: 60px;
  margin-right: 2rem;
  border-radius: 50%;
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 600;
  color: white;
  background: #4a90e2;
}

.infoSection {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.name {
  font-size: 1.125rem;
  font-weight: 500;
  color: #2c3e50;
}

.statusLabel {
  color: #2ecc71;
  font-weight: 500;
}

.buttonGroup {
  display: flex;
  gap: 1rem;
}

.addBtn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cancelBtn {
  padding: 0.625rem 1.5rem;
  border: 2px solid #4a90e2;
  background: white;
  color: #4a90e2;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.addBtn:hover {
  opacity: 0.85;
}

.cancelBtn:hover {
  background: #4a90e2;
  color: white;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .emailContainer {
    padding: 1rem;
  }

  .contactItem {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .avatarSection {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .infoSection {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}